﻿


@*<div class="time">00:00:00</div>*@
<script type="text/javascript">
    var answerInfo;
    getAnswerInfo();
    
    
    
    function getIssueDate() {
        return "2021/4/22 9:54:57";
    }
    function getNowDate() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var day = date.getDate();
        var hh = date.getHours();
        var mm = date.getMinutes();
        var ss = date.getSeconds();
        return year + '/' + month + '/' + '' + day + ':' + hh + ':' + mm + ':' + ss;
    }
    function setDate() {
        getIssueDate();
        getNowDate();

    }
    var HH = 0, MM = 00, SS = 00;
    var timeState = true;
    var timer = setInterval(function () {
        if (timeState) {
            if (HH == 24) HH = 0;
            var str = "";
            if (++SS == 60) {
                if (++MM == 60) {
                    HH++;
                    MM = 0;
                }
                SS = 0;
            }
            str += HH < 10 ? "0" + HH : HH;
            str += ":";
            str += MM < 10 ? "0" + MM : MM;
            str += ":";
            str += SS < 10 ? "0" + SS : SS;
            $(".time").text(str);
        } else {
            $(".time").text(str);
        }
    }, 1000);
</script>
